package com.smedi.ismedi.inmail.core.port.adapter.persistence.repository.impl;

import com.smedi.ismedi.inmail.core.domain.repository.UserActionLogRepository;
import com.smedi.ismedi.inmail.core.port.adapter.persistence.model.UserActionLogEntity;
import com.smedi.ismedi.inmail.core.port.adapter.persistence.mybatis.mapper.UserActionLogMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

/**
 * @className: UserActionLogRepositoryImpl
 * @Description: TODO
 * @version: v1.0.0
 * @author: wzx
 * @date: 2022/9/30 14:57
 */

@Repository
@AllArgsConstructor
public class UserActionLogRepositoryImpl implements UserActionLogRepository {

    private final UserActionLogMapper userActionLogMapper;

    @Override
    public int save(UserActionLogEntity entity) {
        return userActionLogMapper.insert(entity);
    }
}